projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26c54bf
)
stubdom: fix issue with phy disks
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 19 May 2009 00:18:35 +0000
(
01:18
+0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 19 May 2009 00:18:35 +0000
(
01:18
+0100)
Add an exception for stubdoms in the same_vm hotplug script function.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/hotplug/Linux/block-common.sh
patch
|
blob
|
history
diff --git
a/tools/hotplug/Linux/block-common.sh
b/tools/hotplug/Linux/block-common.sh
index a0ebc9b12a29c028e83ff5846ae7d34eb45ad796..efedbf50d4246767c86fcbaf87ddd9e3270eef08 100644
(file)
--- a/
tools/hotplug/Linux/block-common.sh
+++ b/
tools/hotplug/Linux/block-common.sh
@@
-110,7
+110,8
@@
same_vm()
# allowed.
local othervm=$(xenstore_read_default "/local/domain/$otherdom/vm" \
"$FRONTEND_UUID")
-
- [ "$FRONTEND_UUID" = "$othervm" ]
+ local target=$(xenstore_read_default "/local/domain/$FRONTEND_ID/target" \
+ "-1")
+ [ "$FRONTEND_UUID" = "$othervm" -o "$target" = "$otherdom" ]
}